package edu.calvin.djs32.cs214.interpreters.calculator.primitives;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

import edu.calvin.cs214.hobbes2008.IntegerTIR;


public class DividePrimitiveTest {
	@Test
	public void shouldApplyDivide() {
	  assertEquals(new IntegerTIR(1), new DividePrimitive().apply(new IntegerTIR(3), new IntegerTIR(3)));
	  assertEquals(new IntegerTIR(10), new DividePrimitive().apply(new IntegerTIR(100), new IntegerTIR(10)));
	  assertEquals(new IntegerTIR(3), new DividePrimitive().apply(new IntegerTIR(9), new IntegerTIR(3)));
	}

}
